const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})
module.exports = {
  lintOnSave: false,
  publicPath: './',
  chainWebpack: config =>{
    config.plugin('html')
      .tap(args => {
        args[0].title = "远程监控系统";
        return args;
      })
  },
  devServer: {
    // host: '10.11.83.181',
    // port: 8080,
    proxy: {
        '/myapp': {
            target: 'http://10.11.82.18:8091', // 后端API服务器地址
            changeOrigin: true,
            pathRewrite: { '^/myapp': '/myapp' }
        }
    }
  }
}